package date_;

import java.util.Arrays;

/**
 * @author wly
 * @version V1.0.0
 * @date 2022/12/24 14:52
 */
public class Homework03 {
    public static void main(String[] args) {
        System.out.println(change("Willian Jefferson Clinton"));
    }

    public static String change(String str){
        String[] split = str.split(" ");
        char c = split[1].charAt(0);
        String res = split[2] + "," + split[0] + "." + Character.toUpperCase(c);
        return res;
    }
}
